﻿namespace Anley.DomainDrivenDesign.Contract.Configuration;

/// <summary>
/// 邮件配置
/// </summary>
public class SmtpConfiguration
{
    /// <summary>
    /// 主机
    /// </summary>
    public required string Host { get; set; }

    /// <summary>
    /// 端口号
    /// </summary>
    public int Port { get; set; }

    /// <summary>
    /// 是否启用HTTPS
    /// </summary>
    public bool EnableSsl { get; set; }

    /// <summary>
    /// 用户名
    /// </summary>
    public required string UserName { get; set; }

    /// <summary>
    /// 密码
    /// </summary>
    public required string Password { get; set; }
}